<?php

class RequestStatusFormFilter extends BaseForm {

    public function configure() {
        $this->setWidgets(array(
            'requestStatus' => new sfWidgetFormChoice(array(
                'multiple' => true,
                'expanded' => true,
                'choices' => array('PENDING' => 'PENDING', 'ACCEPTED' => 'ACCEPTED', 'REFUSED' => 'REFUSED')))
        ));

        $this->setValidators(array(
            'requestStatus' => new sfValidatorPass()
        ));

        $this->widgetSchema->setNameFormat('request_status_form_filter[%s]');
    }

}